import Vue from "vue";
import VueRouter from "vue-router";
import BookList from "@/components/BookList.vue"
import AddBook from "@/components/AddBook.vue"
import UpdateBook from "@/components/UpdateBook.vue"

Vue.use(VueRouter)

const router = new VueRouter({
    routes:[
        {path:"/",redirect:"/init"},
        {path:"/init",component:BookList},
        {path:"/add-book",component:AddBook},
        {path:"/update-book",component:UpdateBook}     
    ]
})
export default router